package com.silence.gmall.web.feign;

import com.silence.gmall.base.Result;
import com.silence.gmall.web.vo.res.SkuDetailResVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author silence
 * @Date 2025-08-26 15:55
 * @Email 792245022@qq.com
 * @Version 1.0
 * @Description
 */
@Component
@FeignClient(name = "gmall-item", path = "/api/inner/item")
public interface ItemFeignClient {

    @GetMapping("/getSkuDetail/{skuId}")
    Result<SkuDetailResVo> getSkuDetail(@PathVariable("skuId") Long skuId);

}
